using NoteManger.Properties;
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace NoteManger
{
	public class FrmNoteAlarm : Form
	{
		private IContainer components = null;
		private Button btnCancel;
		private Button btnViewDetail;
		public Label lbMsg;
		private GroupBox groupBox1;
		private PictureBox pictureBox1;
		private Button btnAlterConfig;
		private NoteRemote _NoteRemoteObject = null;
		private TLoginInfo _LoginInfo = new TLoginInfo();
		public NoteRemote NoteRemoteObject
		{
			set
			{
				this._NoteRemoteObject = value;
			}
		}
		public TLoginInfo LoginInfo
		{
			set
			{
				this._LoginInfo = value;
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.lbMsg = new Label();
			this.btnCancel = new Button();
			this.btnViewDetail = new Button();
			this.groupBox1 = new GroupBox();
			this.pictureBox1 = new PictureBox();
			this.btnAlterConfig = new Button();
			((ISupportInitialize)this.pictureBox1).BeginInit();
			base.SuspendLayout();
			this.lbMsg.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
			this.lbMsg.Location = new System.Drawing.Point(53, 22);
			this.lbMsg.Name = "lbMsg";
			this.lbMsg.Size = new System.Drawing.Size(362, 21);
			this.lbMsg.TabIndex = 0;
			this.lbMsg.Text = "您有 0 天日志未编写，有 0 个日志明细未审核！";
			this.lbMsg.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			this.btnCancel.Location = new System.Drawing.Point(38, 74);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(75, 23);
			this.btnCancel.TabIndex = 1;
			this.btnCancel.Text = "知道了(&O)";
			this.btnCancel.UseVisualStyleBackColor = true;
			this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
			this.btnViewDetail.Location = new System.Drawing.Point(145, 74);
			this.btnViewDetail.Name = "btnViewDetail";
			this.btnViewDetail.Size = new System.Drawing.Size(97, 23);
			this.btnViewDetail.TabIndex = 2;
			this.btnViewDetail.Text = "查看详情(&D)";
			this.btnViewDetail.UseVisualStyleBackColor = true;
			this.btnViewDetail.Click += new EventHandler(this.btnViewDetail_Click);
			this.groupBox1.Location = new System.Drawing.Point(12, 57);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(403, 8);
			this.groupBox1.TabIndex = 3;
			this.groupBox1.TabStop = false;
			this.pictureBox1.Image = Resources.info;
			this.pictureBox1.Location = new System.Drawing.Point(9, 15);
			this.pictureBox1.Name = "pictureBox1";
			this.pictureBox1.Size = new System.Drawing.Size(38, 36);
			this.pictureBox1.TabIndex = 4;
			this.pictureBox1.TabStop = false;
			this.btnAlterConfig.Location = new System.Drawing.Point(274, 74);
			this.btnAlterConfig.Name = "btnAlterConfig";
			this.btnAlterConfig.Size = new System.Drawing.Size(114, 23);
			this.btnAlterConfig.TabIndex = 5;
			this.btnAlterConfig.Text = "更改提醒设置(&A)";
			this.btnAlterConfig.UseVisualStyleBackColor = true;
			this.btnAlterConfig.Click += new EventHandler(this.btnAlterConfig_Click);
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(427, 109);
			base.Controls.Add(this.btnAlterConfig);
			base.Controls.Add(this.pictureBox1);
			base.Controls.Add(this.groupBox1);
			base.Controls.Add(this.btnViewDetail);
			base.Controls.Add(this.btnCancel);
			base.Controls.Add(this.lbMsg);
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "FrmNoteAlarm";
			base.ShowIcon = false;
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "提醒";
			base.TopMost = true;
			base.Load += new EventHandler(this.FrmNoteAlarm_Load);
			((ISupportInitialize)this.pictureBox1).EndInit();
			base.ResumeLayout(false);
		}
		public FrmNoteAlarm()
		{
			this.InitializeComponent();
		}
		private void btnCancel_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
		}
		private void btnViewDetail_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.OK;
		}
		private void FrmNoteAlarm_Load(object sender, EventArgs e)
		{
		}
		private void btnAlterConfig_Click(object sender, EventArgs e)
		{
			base.Hide();
			base.DialogResult = DialogResult.Cancel;
			FrmClientConfig frmClientConfig = new FrmClientConfig();
			frmClientConfig.NoteRemoteObject = this._NoteRemoteObject;
			frmClientConfig.LoginInfo = this._LoginInfo;
			frmClientConfig.ShowDialog();
			frmClientConfig.Dispose();
		}
	}
}
